﻿@using QuestionsAnswers.UI.Models
@model List<CourseAssignViewModel> 
<div id="content">
    <div class="demo">
        @for (int i = 0; i < Model.Count; i++)
        {
            <br />
            @Html.HiddenFor(courseAssignViewModels => courseAssignViewModels[i].Course.CourseId)  
       
            @Html.CheckBoxFor(courseAssignViewModels => courseAssignViewModels[i].Selected)
            <span class="expandDialog expand" style="display: inline-block">
                @Html.DisplayFor(courseAssignViewModels => courseAssignViewModels[i].Course.Name)
            </span>
            
            <div class="collapse">
                <fieldset>
                    <ul>
                        @for (int j = 0; j < Model[i].Users.Count; j++)
                        {
              
                            <li>
                                @Html.HiddenFor(courseAssignViewModels => courseAssignViewModels[i].Users[j].Value)
                                @Html.CheckBoxFor(courseAssignViewModels => courseAssignViewModels[i].Users[j].Selected)
                                @Html.DisplayFor(courseAssignViewModels => courseAssignViewModels[i].Users[j].Text)
                                (Assigned @Model[i].Users[j].NumberOfQuestionAssignedForCourse Questionfor this
                                Course) </li>
                        
                    
                        }
                    </ul>
                </fieldset>
            </div>
         
        }
    </div>
</div>
